package com.bsj.power.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.power.common.def.entity.Classification;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Author zhaoyang
 * @Date 2024/9/4 15:01
 */
@Mapper
@Repository
public interface ClassificationMapper extends BaseMapper<Classification> {
    /**
     * 根据pid查询子级
     *
     * @param pid
     * @return
     */
    List<Classification> selectByPid(Integer pid);

    /**
     * 获取当前数据库最大主键值
     *
     * @return
     */
    Integer selectBiggestId();
}
